{% extends "base.html" %}

{% block title %}
    控制页面
{% endblock %}

{% block body %}
    {% if age > 18 %}
    <div>您已成年</div>
{% elif age < 18 %}
    <div>您未成年</div>
{% endif %}

<ul>
{% for book in books %}
    <li>{{ book }}</li>
{% endfor %}
</ul>

{% for key,value in person.items() %}
    <div>{{ key }}:{{ value }}</div>
{% endfor %}

{% endblock %}